package com.meituan.sdk.model.ddzh.registration.registrationDepartmentQuery;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 医院挂号-查询科室信息
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/registration/department/query",
    businessId = 58,
    apiVersion = "10000",
    apiName = "registration_department_query",
    needAuth = true
)
public class RegistrationDepartmentQueryRequest implements MeituanRequest<List<DepartmentManageVO>> {
    /**
    * <p data-diff-id="ct-diff-id-e70cd568-5668-4858-937b-04289392e363"><span style="color: rgb(0, 0, 0)">科室业务类型：1：普通科室；2：专病科室</span></p>
    */
    @NotNull(message = "deptBizType不能为空")
    @SerializedName("deptBizType")
    private Integer deptBizType;

    public Integer getDeptBizType() {
        return deptBizType;
    }
    public void setDeptBizType(Integer deptBizType) {
        this.deptBizType = deptBizType;
    }


    @Override
    public MeituanResponse<List<DepartmentManageVO>> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<List<DepartmentManageVO>>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "RegistrationDepartmentQueryRequest{" + "deptBizType=" + deptBizType + "}";
    }
}
